/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package edu.aacorps.javaeal.common;

/**
 *
 * @author Ati
 */
public class CodeDTO {
    
    private Long id;
    private String code;
    private String userName;

    public CodeDTO() {
    }

    public CodeDTO(String code, String userName) {
        this.code = code;
        this.userName = userName;
    }
    
    public CodeDTO(Long id, String code, String userName) {
        this.id = id;
        this.code = code;
        this.userName = userName;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    @Override
    public String toString() {
        return "CodeDTO{" + "id=" + id + ", code=" + code + ", userName=" + userName + '}';
    }

}
